package com.zi.experttalk.experttalk.View;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.LinearLayout;
import com.zi.experttalk.experttalk.R;

/**
 * Created by lenovo on 2014/12/10.
 */
public class MoreActicity extends Activity {
    private LinearLayout gonggaoLinearLayout;
    private LinearLayout kefutelLinearLayout;
    private LinearLayout kefuemailLinearLayout;
    private LinearLayout aboutusLinearLayout;
    private LinearLayout banbenLinearLayout;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.more);

        gonggaoLinearLayout = (LinearLayout) findViewById(R.id.more_gonggao_linearLayout);

        kefutelLinearLayout = (LinearLayout) findViewById(R.id.more_kefutel_linearLayout);

        kefuemailLinearLayout = (LinearLayout) findViewById(R.id.more_kefuemail_linearLayout);

        aboutusLinearLayout = (LinearLayout) findViewById(R.id.more_aboutus_linearLayout);

        banbenLinearLayout = (LinearLayout) findViewById(R.id.more_banben_linearLayout);

        /**
         * 公告列表点击事件
         */

        gonggaoLinearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                  Intent intent = new Intent(MoreActicity.this,GongGaoListActivity.class);
                  startActivity(intent);
            }
        });

        /**
         * 客服电话点击事件
         */

        kefutelLinearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Intent.ACTION_CALL);
                intent.setData(Uri.parse("tel:10086"));
                startActivity(intent);
            }
        });

        /**
         * 客服邮箱点击事件
         */

        kefuemailLinearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Intent.ACTION_SEND);
                startActivity(Intent.createChooser(intent, "请选择邮件发送软件"));
            }
        });

        /**
         * 关于我们点击事件
         */
        aboutusLinearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        /**
         * 版本检测点击事件
         */
        banbenLinearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }
}
